package com.huike.web.controller.report;

import com.huike.business.service.ITbBusinessService;
import com.huike.clues.service.ITbActivityService;
import com.huike.clues.service.ITbClueService;
import com.huike.common.core.controller.BaseController;
import com.huike.common.core.domain.AjaxResult;
import com.huike.report.domain.vo.Report;
import com.huike.report.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/report")
public class ReportController extends BaseController {

    @Autowired
    private IReportService reportService;
    @Autowired
    private ITbClueService tbClueService;

    @Autowired
    private ITbBusinessService tbBusinessService;

    @Autowired
    private ITbActivityService activityService;


    /**
     * /report/getVulnerabilityMap/{beginCreateTime}/{endCreateTime}
     *
     * @param beginCreateTime 开始时间
     * @param endCreateTime   结束时间
     * @return
     */
    @GetMapping("/getVulnerabilityMap/{beginCreateTime}/{endCreateTime}")
    public AjaxResult getVulnerabilityMap(@PathVariable String beginCreateTime,@PathVariable String endCreateTime) {
        Report report = reportService.getVulnerabilityMap(beginCreateTime, endCreateTime);


        return AjaxResult.success(report);
    }


}